<?php
/*
	[BuyPg] (C) 2010-2011 Buypg
	$Id: NbCommendModel.class.php 2011-5-6 10:14:52 wufujun $
 */

if (!defined('THINK_PATH')) {
	exit('Access Denied');
}

class NbCommendModel extends Model{
	//字段映射
	protected $_map = array(
		'siteid' => 'site_id',
		'content' => 'commend',
	);
	//自动验证
	protected $_validate = array(
		array('commend','require','评论内容不能为空！',1),
		array('site_id','require','非法操作',1),
	);
	//自动填充
	protected $_auto = array(
		array('user_ip','get_client_ip',1,'function'),
	);
}
?>